package mainService;

import java.security.KeyPair;
import java.security.interfaces.RSAPublicKey;
import messageWrapper.Message;
import messageWrapper.MessageElement;
import messageWrapper.PackFactory;
import messageWrapper.Packer;
import registerCenter.RegisterCenter;
import securityStub.CasSecurityResponse;
import securityStub.SecurityReq;
import serviceBroker.ServiceBrokerFactory;
import serviceDiscover.ServiceDiscover;
import util.CASSecurityManager;
import util.RSAUtil;
import xmlAnalyser.RequestAnalyser;
import dataStructures.KeyMoudler;
import dataStructures.RegisterMessage;
import dataStructures.AdapterRequest;
import dataStructures.ServicesInfo;
import dataStructures.Sign;

@javax.jws.WebService(targetNamespace = "http://mainService/", serviceName = "SuperServiceBus", portName = "SuperServiceBusPort", wsdlLocation = "WEB-INF/wsdl/SuperServiceBus.wsdl")
public class SuperServiceBusDelegate {

	mainService.SuperServiceBus superServiceBus = new mainService.SuperServiceBus();

	public Message doWork(AdapterRequest req, Sign sign, KeyMoudler key) {
		return superServiceBus.doWork(req, sign, key);
	}

	public ServicesInfo getServiceList() {
		return superServiceBus.getServiceList();
	}

	public boolean registService(RegisterMessage rms) {
		return superServiceBus.registService(rms);
	}

	public boolean unregistService(String serviceURI) {
		return superServiceBus.unregistService(serviceURI);
	}

	public KeyMoudler fetchPublicKey() {
		return superServiceBus.fetchPublicKey();
	}

}